<!DOCTYPE html>
<html lang="en" style="background:#fff;">
<head>
    <base href="${basePath}">
    <#include "common/top.html"/>
</head>
<body style="background:#fff;overflow: hidden">
<form class="layui-form" modelAttribute="monitorFloor" name="form1" id="form1" method="post">
    <div class="layui-form-item-dept">
                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">入库时间：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="workDate" id="workDate" maxlength="50"
                                       placeholder="这里输入入库时间" title="入库时间"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">数据来源：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="dataSource" id="dataSource" maxlength="50"
                                       placeholder="这里输入数据来源" title="数据来源"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">湿度：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="humitidy" id="humitidy" maxlength="50"
                                       placeholder="这里输入湿度" title="湿度"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">埋深变化：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="depthChange" id="depthChange" maxlength="50"
                                       placeholder="这里输入埋深变化" title="埋深变化"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">电压：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="voltage" id="voltage" maxlength="50"
                                       placeholder="这里输入电压" title="电压"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">埋深：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="depth" id="depth" maxlength="50"
                                       placeholder="这里输入埋深" title="埋深"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">分站名称：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="stationName" id="stationName" maxlength="50"
                                       placeholder="这里输入分站名称" title="分站名称"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">工作状态：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="operativeMode" id="operativeMode" maxlength="50"
                                       placeholder="这里输入工作状态" title="工作状态"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">信号：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="signal" id="signal" maxlength="50"
                                       placeholder="这里输入信号" title="信号"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">气温：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="weater" id="weater" maxlength="50"
                                       placeholder="这里输入气温" title="气温"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">水位标高：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="waterLevel" id="waterLevel" maxlength="50"
                                       placeholder="这里输入水位标高" title="水位标高"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">温度：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="temperture" id="temperture" maxlength="50"
                                       placeholder="这里输入温度" title="温度"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">监测时间：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="monitorDate" id="monitorDate" maxlength="50"
                                       placeholder="这里输入监测时间" title="监测时间"/>
                            </div>
                        </div>
                                                                                                                            
                                            <div class="layui-form-item">
                            <label class="layui-form-label">分站号：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" name="stationId" id="stationId" maxlength="50"
                                       placeholder="这里输入分站号" title="分站号"/>
                            </div>
                        </div>
                                                            </div>
</form>
</body>
<script type="text/javascript">

    layui.use(['form', 'table', 'laydate'], function () {
        var form = layui.form;
        var laydate = layui.laydate;

                                                                                                                                                                                                                                                                                                        form.render();

    });


    function submitHandler() {
        var prefix = basePath + "monitor/floor";
        $.operate.post(prefix + '/addMonitorFloor', $("#form1").serializeArray(), function (result) {
            if (result.status == true) {
                layer.alert(result.msg, function (index) {
                    var index1 = parent.layer.getFrameIndex(window.name); //获取窗口索引
                    parent.layer.close(index1);
                    layer.close(index);
                });
            } else {
                parent.layer.alert(result.msg);
            }
        });
    }
</script>
</body>
</html>